{% extends "zinnia/base.html" %}
{% load i18n %}
{% load url from future %}

{% block meta-description %}{% trans "Author list" %}{% endblock %}

{% block title %}{% trans "Authors" %}{% endblock %}

{% block body-class %}author-list{% endblock %}

{% block content %}
<h2>{% trans "Author list" %}</h2>

<ul>
  {% for object in object_list %}
  <li class="vcard">
    <a href="{% url 'zinnia_author_detail' object.username %}"
       title="{% blocktrans with author=object %}Show all {{ author }}'s entries{% endblocktrans %}"
       class="fn nickname url">{{ object }}</a>
    {% blocktrans count entry_count=object.entries_published.count %}{{ entry_count }} entry{% plural %}{{ entry_count }} entries{% endblocktrans %}
  </li>
  {% empty %}
  <li>
    {% trans "No authors yet." %}
  </li>
  {% endfor %}
</ul>
{% endblock %}
